<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script type="text/javascript">
		// 编写一个函数，计算三个数字的大小，按从小到大顺序输出
		function fn(a, b, c) {
			//假设a<b<c
			var t = 0;
			//当a<b的时候将a和b的值调换
			if (a > b) {
				t = a;
				a = b;
				b = t
			}
			if (a > c) {
				t = a;
				a = c;
				c = t
			}
			if (b > c) {
				t = b;
				b = c;
				c = t;
			}
			console.log("顺序是" + a + "<" + b + "<" + c + "");

		}
		fn(1, 70, 8)
	</script>
	<body>
	</body>
</html>
